import request from '@/utils/request'

// 查询货物动态列表
export function listFlow(query) {
  return request({
    url: '/system/flow/list',
    method: 'get',
    params: query
  })
}

// 查询货物动态详细
export function getFlow(item3Id) {
  return request({
    url: '/system/flow/' + item3Id,
    method: 'get'
  })
}

// 新增货物动态
export function addFlow(data) {
  return request({
    url: '/system/flow',
    method: 'post',
    data: data
  })
}

// 修改货物动态
export function updateFlow(data) {
  return request({
    url: '/system/flow',
    method: 'put',
    data: data
  })
}

// 删除货物动态
export function delFlow(item3Id) {
  return request({
    url: '/system/flow/' + item3Id,
    method: 'delete'
  })
}
